package com.esri.core.portal;

import java.util.List;

/* loaded from: classes.dex */
public class PortalQueryResultSet<T> {
    PortalQueryParams a;
    PortalQueryParams b;
    int c;
    List<T> d;

    public PortalQueryResultSet(PortalQueryParams portalQueryParams, PortalQueryParams portalQueryParams2, int i, List<T> list) {
        this.a = portalQueryParams;
        this.b = portalQueryParams2;
        this.c = i;
        this.d = list;
    }

    public PortalQueryParams getQueryParams() {
        return this.a;
    }

    void a(PortalQueryParams portalQueryParams) {
        this.a = portalQueryParams;
    }

    public PortalQueryParams getNextQueryParams() {
        return this.b;
    }

    void b(PortalQueryParams portalQueryParams) {
        this.b = portalQueryParams;
    }

    public int getTotalResults() {
        return this.c;
    }

    void a(int i) {
        this.c = i;
    }

    public List<T> getResults() {
        return this.d;
    }

    void a(List<T> list) {
        this.d = list;
    }

    public int hashCode() {
        PortalQueryParams portalQueryParams = this.b;
        int hashCode = ((portalQueryParams == null ? 0 : portalQueryParams.hashCode()) + 31) * 31;
        PortalQueryParams portalQueryParams2 = this.a;
        int hashCode2 = (hashCode + (portalQueryParams2 == null ? 0 : portalQueryParams2.hashCode())) * 31;
        List<T> list = this.d;
        return ((hashCode2 + (list != null ? list.hashCode() : 0)) * 31) + this.c;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && (obj instanceof PortalQueryResultSet)) {
            PortalQueryResultSet portalQueryResultSet = (PortalQueryResultSet) obj;
            PortalQueryParams portalQueryParams = this.b;
            if (portalQueryParams == null) {
                if (portalQueryResultSet.b != null) {
                    return false;
                }
            } else if (!portalQueryParams.equals(portalQueryResultSet.b)) {
                return false;
            }
            PortalQueryParams portalQueryParams2 = this.a;
            if (portalQueryParams2 == null) {
                if (portalQueryResultSet.a != null) {
                    return false;
                }
            } else if (!portalQueryParams2.equals(portalQueryResultSet.a)) {
                return false;
            }
            List<T> list = this.d;
            if (list == null) {
                if (portalQueryResultSet.d != null) {
                    return false;
                }
            } else if (!list.equals(portalQueryResultSet.d)) {
                return false;
            }
            return this.c == portalQueryResultSet.c;
        }
        return false;
    }

    public String toString() {
        return "PortalQueryResultSet [queryParams=" + this.a + ", nextQueryParams=" + this.b + ", totalResults=" + this.c + ", results=" + this.d + "]";
    }
}
